First, import the required libraries

Now, load the iris dataset

Remove the Labels

Train the Decision Tree Classifier